/**
 * 接口列表文件
 */
export default {

	/** 公共 ↓ **/
	common: {
		init: {
			url: "index/init",
			auth: false,
			method: "GET",
			// desc: '初始化数据'
		},
		upload: {
			url: "index/upload",
			auth: true,
			method: "POST",
			// desc: '上传图片',
		},
		wxJssdk: {
			url: "wechat/jssdk",
			auth: false,
			method: "POST",
			// desc: '微信Jssdk',
		},
		syncPages: {
			url: "index/asyncPages",
			auth: false,
			method: "POST",
			// desc: '路由表 DEV开发模式下有效'
		},
		debug: {
			url: "index/debugLog",
			auth: false,
			method: "POST",
			// desc: '上传DEBUG信息',
		},
		richText: {
			url: "index/richtext",
			auth: false,
			method: "GET",
			// desc: '富文本数据',
		},
		shareAdd: {
			url: "share/add",
			auth: false,
			method: "POST",
			// desc: '添加分享记录',
		},
		smsSend: {
			url: "sms/send",
			auth: false,
			method: "POST",
			// desc: '发送短信',
		},
	},

	/** 分类 ↓ **/
	group: {
		usersList: {
			url: "category/list",
			auth: false,
			method: "GET",
			// desc: '分类类别',
		},
		area: {
			url: "/api/ai/area",
			auth: false,
			method: "GET",
			// desc: '省市区',
		},
	},

	/** 常见问题 ↓ **/
	other: {
		faqList: {
			url: "faq",
			auth: false,
			method: "GET",
			// desc: '常见问题列表',
		},
		feedbackType: {
			url: "feedback/type",
			auth: true,
			method: "GET",
			// desc: '意见反馈类型',
		},
		feedbackAdd: {
			url: "feedback/add",
			auth: true,
			method: "POST",
			// desc: '提交意见',
		},
		commentAdd: {
			url: "comment/submit",
			auth: true,
			method: "POST",
			// desc: '提交评论',
		},
		commentList: {
			url: "comment/list",
			auth: true,
			method: "GET",
			// desc: '评论列表',
		}
	},
	user: {
		getWxMiniProgramSessionKey: {
			url: "api/ai/getWxMiniProgramSessionKey",
			auth: false,
			method: "POST",
			// desc: '获取用户session_key',
		},

		wxMiniProgramOauth: {
			url: "user/wxMiniProgramOauth",
			auth: false,
			method: "POST",
			// desc: '微信小程序登录',
		}

	},
	/** 支付金钱 ↓ **/
	money: {
		prepay: {
			url: "pay/prepay",
			auth: true,
			method: "POST",
			// desc: '发起支付',
		},
		walletApply: {
			url: "user_wallet_apply/apply",
			auth: true,
			method: "POST",
			// desc: '申请提现'
		},
		walletRule: {
			url: "user_wallet_apply/rule",
			auth: true,
			method: "GET",
			// desc: '提现规则'
		},
		walletLog: {
			url: "user_wallet_log",
			auth: true,
			method: "GET",
			// desc: '钱包,积分明细'
		},
		bankInfo: {
			url: "user_bank/info",
			auth: true,
			method: "GET",
			// desc: '银行卡信息'
		},
		bankEdit: {
			url: "user_bank/edit",
			auth: true,
			method: "POST",
			// desc: '编辑银行卡信息'
		},
		withdrawLog: {
			url: "user_wallet_apply/index",
			auth: true,
			method: "GET",
			// desc: '提现记录'
		},
		recharge: {
			url: "trade_order/recharge",
			auth: true,
			method: "POST",
			// desc: '充值'
		},
		rechargeLog: {
			url: "trade_order/index",
			auth: true,
			method: "GET",
			// desc: '充值记录'
		},
		rechargeDetail: {
			url: "trade_order/detail",
			auth: true,
			method: "GET",
			// desc: '充值订单详情'
		}
	},
	/** 登录 **/
	login: {
		acountlogin: {
			url: "api/ai/login",
			auth: false,
			method: "POST",
			// desc: '账号密码登录',
		},
		keylogin: {
			url: "api/ai/keylogin",
			auth: false,
			method: "POST",
			// desc: '一键登录',
		},
		home: {
			url: "api/index/main",
			auth: false,
			method: "GET",
			// desc: '首页',?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		article: {
			url: "api/ai/article",
			auth: false,
			method: "POST",
			// desc: '资讯列表', ?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&page=&pageSize=
		},
		articleDetail: {
			url: "api/ai/articleDetail",
			auth: false,
			method: "POST",
			// desc: '资讯详情', ?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&id=1
		},
		userInfo: {
			url: "api/ai/userInfo",
			auth: true,
			method: "POST",
			// desc: '用户详情', ?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		staff: {
			url: "api/ai/staff",
			auth: true,
			method: "POST",
			// desc: '组织成员', ?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&page=&pageSize=
		},

		delStaff: {
			url: "api/ai/delStaff",
			auth: true,
			method: "POST",
			// desc: '移除组织成员',token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&id=1
		},
		customers: {
			url: "api/ai/customers",
			auth: true,
			method: "POST",
			// desc: '客户列表',?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&customer_phone=&address=
		},
		customer_info: {
			url: "api/ai/customer_info",
			auth: true,
			method: "POST",
			// desc: '客户信息',?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&customers_id=68346
		},
		customer_portray: {
			url: "api/ai/customer_portray",
			auth: true,
			method: "POST",
			// desc: '客户记录',?token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f&customers_id=68346
		},
		logout: {
			url: "api/ai/logout",
			auth: false,
			method: "POST",
			// desc: '退出登录',token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		setStaff: {
			url: "api/ai/setStaff",
			auth: false,
			method: "POST",
			// desc: '设置员工',token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		positionStaff: {
			url: "api/ai/positionStaff",
			auth: false,
			method: "POST",
			// desc: '员工职位列表',token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		distribution: {
			url: "api/ai/distribution",
			auth: false,
			method: "POST",
			// desc: '分配客户',token=ce1ffcaf-d1a2-4ffc-a452-5ae5a4dbf61f
		},
		getPeizhi:{
			url: "login/xieyi",
			auth: false,
			method: "POST",
		}

	},
	veriFace: {
		login: {
			url: "login/stulogin",
			auth: false,
			method: "POST",
		},
		info: {
			url: uni.getStorageSync('identity') === 'student' ? 'student/getUserInfo' : 'user/getUserInfo',
			auth: true,
			method: "POST",
		},
		upload: {
			url: "upload/uploadImage",
			auth: true,
			method: "POST",
		},
		save:{
			url: uni.getStorageSync('identity') === 'student' ? 'student/saveInfo' : 'user/saveUserAvatar',
			auth: true,
			method: "POST",
		}
	}


};